<?php
/**
 * Introduction: Member表模型
 * @author: 杨陈鹏
 * @date: 2016/4/05 16:04
 * @email: yangchenpeng@cdlinglu.com
 */

namespace Common\Model;


use Think\Model;

class MemberModel extends Model
{
    //定义数据库连接信息
    protected $connection;
    //定义模型字段
    protected $fileds = [
        'uid',
        'uuid',
        'username',
        'password',
        'mobile',
        'encrypt',
        'avatar',
        'create_time',
        'login_total',
        'balance',
        'point',
        'first_parent',
        'second_parent',
        'first_child',
        'second_child',
        'third_child',
        'nicname',
        'autograph',
        'invitation',
        'third_parent',
        'is_edit',
        'sex',
        'micro_distribution',
        'frozen',
    ];
    //定义表名
    protected $tableName = 'member';

    /**
     * 初始化
     */
    public function _initialize()
    {
        $this->connection = C('Databaese');
    }
}